lay('#version').html('-v'+ laydate.v);

//执行一个laydate实例
//接听
laydate.render({
    elem: '.workTime', //指定元素
    format: 'yyyy-MM-dd',
    type:'datetime'
});

laydate.render({
    elem: '.transaction', //指定元素
    format: 'yyyy-MM-dd',
    type:'datetime'
});
(function () {
//计算剩余字数
    var workRemark = $('.workRemark');
    var workRemarkI = $('.workRemarkI');
    var workRemarm = workRemarkI.text();
    var opinionth = workRemark.val().length;

    workRemark.attr('maxlength', workRemarm);
    workRemarkI.text(workRemarm - opinionth);
    workRemark.on('input propertychange', function () {
        workRemarkI.text(workRemarm - $(this).val().length);
    });
})()